﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using static StackExchange.Redis.Role;

namespace Interface.WanX.DTO.Turbo
{
    public class TaskResponse
    {
        [JsonProperty("task_id")]
        public string TaskId { get; set; }
        [JsonProperty("task_status")]
        public string TaskStatus { get; set; }

        public bool IsSuccess { get { return TaskStatus == "SUCCEEDED"; } }

        public bool IsFailed { get { return TaskStatus == "FAILED" || TaskStatus == "UNKNOWN"; } }
    }
}
